<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="<?php echo base_url() ?>css/reset.css" type="text/css" rel="stylesheet" media="screen" />
        <link href="<?php echo base_url() ?>css/style.css" type="text/css" rel="stylesheet" media="screen" />
        <title>fashion woman</title>
    </head>
    <body>
<div id="main_box">
    <h1>Chức năng quản lý kích thước sản phẩm</h1>
    <div class="cleared">
<?php
echo anchor(base_url() . 'kich_co/add/', 'Thêm kích cỡ mới');
?>
<br /><br />
<?php
                    if (!$results) {
                        echo '<h1>No Data</h1>';
                        exit;
                    }
                    ?>
<div class="containner" style="margin-right: 5px;">
    <div class="product_container" style="background: border-box">
            
                            <div class="product_detail">
                                <table class="tblBasic">
                                    <thead>
                                        <th>
                                            Ký hiệu
                                        </th>
                                        <th>
                                            Mô tả
                                        </th>
                                        <th>
                                            Hành động
                                        </th>
                                    </thead>
                                    <tbody>
                                        <?php foreach($results as $result) {?>
                                        <tr>
                                            <td>
                                                <?php echo $result-> ky_hieu?>
                                            </td>
                                            <td>
                                                <?php echo $result-> mo_ta?>
                                            </td>
                                            <td colspan="2">
                                                <?php echo anchor(base_url() . 'kich_co/edit/' . $result->ky_hieu, 'Edit');?>
                                                | &nbsp; <?php echo anchor(base_url() . 'kich_co/delete/' . $result->ky_hieu, 'Delete', array('onClick' => 'return deletechecked(\' ' . base_url() . 'kich_co/delete/' . $result->ky_hieu . ' \')'));?>
                                            </td>
                                        </tr>
                                        <?php } ?>
                                    </tbody>
                                    
                                </table>
                                
                        </div>
</div>
</div>
    </body>
</html>

<script type="text/javascript">
function deletechecked(link)
{
    var answer = confirm('Delete item?')
    if (answer){
        window.location = link;
    }
    
    return false;  
}

</script>
<script type="text/javascript">
function deletechecked(link)
{
    var answer = confirm('Delete item?')
    if (answer){
        window.location = link;
    }
    
    return false;  
}

</script>